package com.yuyou.tas.service.api.lesson.service;

import com.yuyou.tas.service.api.lesson.entity.LessonResource;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "tas-lesson-service")
@RequestMapping(value = "/lessonResourceAPI")
public interface LessonResourceAPI {

	
	@RequestMapping(value = "/addResourceTemp")
	ResBoolSimpleInfo<String> addResourceTemp(
			@RequestParam("resourceId")String resourceId,
			@RequestParam("organizationId")Long organizationId,
			@RequestParam("lessonClassId")Long lessonClassId, 
			@RequestParam("userId")Long userId);
	
	@RequestMapping(value = "/selectByResourceId")
	LessonResource selectByResourceId(@RequestParam("resourceId") String resourceId);
	
	@RequestMapping(value = "/selectById")
	LessonResource  selectById(@RequestParam("id") Long id);;

	@RequestMapping(value = "/selectTemps")
	List<LessonResource> selectTemps();

	@RequestMapping(value = "/delByResourceIds")
	void delByResourceIds(@RequestParam("id") String[] id);
}
